#include <iostream>

using namespace std;
#define int long long
const int N = 5e5 + 10;
int w[N];
int n , a , b;
bool check(int x)
{
    int cnt = 0;
    for(int i = 1;i <= n;i ++)
    {
        if(x * a >= w[i]) continue;
        int t = w[i] - (x * a);
        cnt += t / b + (t % b == 0 ? 0 : 1);
    }
    if(cnt > x) return false;
    else return true;
}
signed main()
{
    cin >> n >> a >> b;
    for(int i = 1;i <= n;i ++) cin >> w[i];
    int l = 1 , r = 5e5 + 10;
    while(l < r)
    {
        int mid = l + r >> 1;
        if(check(mid)) r = mid;
        else l = mid + 1;
    }
    cout << r << endl;
    return 0;
}